import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 分页
export function getPage(data) {
    return request({
        url: '/alm/dev_customer_map/page',
        method: 'post',
        data: data
    })
}

// 导入
export function excelImport() {
    return request({
        url: '/alm/dev_customer_map/excel_import',
        method: 'post'
    })
}

// 获取导入模板
export function getImportTemplate() {
    return request({
        url: '/alm/dev_customer_map/import_template',
        method: 'post'
    })
}

// 新增
export function add(data) {
    return request({
        url: '/alm/dev_customer_map/add',
        method: "post",
        data: data
    })
} 

// 编辑
export function edit(data) {
    return request({
        url: '/alm/dev_customer_map/edit',
        method: "post",
        data: data
    })
}

// 删除
export function del(id) {
    return request({
        url: '/alm/dev_customer_map/del/' + id,
        method: 'post'
    })
}

export function getDevTypeSelection() {
    return request({
        url: '/common/getDevTypeSelection',
        method: 'get'
    })
}